const {ccclass, property} = cc._decorator;

@ccclass
export default class SplashScene extends cc.Component {

    @property(cc.Label)
    label: cc.Label = null;

    onLoad(){
        // cc.log('<< SplashScript: onLoad');
    }

    start () {
        // init logic
        // cc.log('<< SplashScript: start');
        this.label.string = "游戏加载场景";

        setTimeout(()=>{
            cc.director.loadScene("StartScene",()=>{
                cc.log('<< SplashScript: load StartScene end');
            });
        },0);
    }
}
